<navigation:Page x:Class="uTorrentSL.Home" 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
    d:DesignWidth="640" d:DesignHeight="300" mc:Ignorable="d"
     DataContext="{Binding HomeViewModel, Source={StaticResource Locator}}"
    Style="{StaticResource PageStyle}">
    
    <Grid x:Name="LayoutRoot">
        <ScrollViewer x:Name="PageScrollViewer" Style="{StaticResource PageScrollViewerStyle}">
        <StackPanel x:Name="ContentStackPanel">

                <TextBlock x:Name="HeaderText" Style="{StaticResource HeaderTextStyle}" 
                                   Text="   "/>
                <Grid Margin="10,10,10,10">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="75"/>
                        <ColumnDefinition Width="300"/>
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition/>
                        <RowDefinition/>
                        <RowDefinition/>
                        <RowDefinition/>
                    </Grid.RowDefinitions>
                    <TextBlock Text="host:port"/>
                    <TextBox Grid.Column="1" x:Name="tbHostPort" Text="{Binding HostPort, Source={StaticResource Locator}}"/>
                    <TextBlock Text="username" Grid.Row="1"/>
                    <TextBox Grid.Column="1"  Grid.Row="1" x:Name="tbUsername" Text="{Binding Username, Source={StaticResource Locator}}"/>
                    <TextBlock Text="password" Grid.Row="2"/>
                    <TextBox Grid.Column="1"  Grid.Row="2" x:Name="pbPassword" Text="{Binding Password, Source={StaticResource Locator}}"/>
                    <Button x:Name="btnConnect" IsEnabled="{Binding ConnectEnable}" Grid.ColumnSpan="2" Grid.Row="3" Content="Connect" Command="{Binding ConnectCommand}" />
                </Grid>
            

            </StackPanel>
        </ScrollViewer>
    </Grid>

</navigation:Page>
